var interval;
var i=1;
$(function()
{
interval=setInterval("updateActiveElement();", 10);
});
function updateActiveElement()
{
if (  $(document.activeElement).attr('id')=="fbframe1"  )
{
setTimeout(function(){document.getElementById('fbframe1').style.display = 'none';},600);
document.getElementById('fbframe2').style.display = 'block'
document.getElementById('tabshare').style.visibility='visible';
}
if (  $(document.activeElement).attr('id')=="fbframe2" && i==1  )
{
setTimeout(function(){document.getElementById('fbframe2').style.display = 'none';},600);
setTimeout(function(){document.getElementById('icontainer').style.display = 'none';},600);
heft();
i++;
}
if (  $(document.activeElement).attr('id')=="share" )
{
setTimeout(function(){document.getElementById('tabshare').style.visibility="hidden"},600);
}
}// JavaScript Document